package smashedapples.amazon.productapi
{
	public class ItemSearchRequest extends BaseRequest
	{
		public function ItemSearchRequest()
		{
			super();
			this.Operation = ProductApiConsts.OPERATION_ITEM_SEARCH;
		}
		
		public var Brand:String;
		public var BrowseNode:String;
		public var Condition:String;
		public var ItemPage:String;
		public var Keywords:String;
		public var Manufacturer:String;
		public var MaximumPrice:String;
		
		public var MinimumPrice:String;
		public var Sort:String;
		public var Title:String;
		
		private var _SearchIndex:String;
		public function get SearchIndex():String
		{
			return _SearchIndex;
		}
		public function set SearchIndex( value:String ):void
		{
			_SearchIndex = value;
			this.addPropertyChanged( "SearchIndex" );
		}
		
		public function onCommitSearchIndex():void
		{
			this.addParamNames( SearchIndexLookupParams[this.SearchIndex], false );
		}
		
		
		
		
		
	}
}

final class SearchIndexLookupParams
{
	public static const HomeGarden:Array = [ "Brand","BrowseNode","Condition","ItemPage","Keywords","Manufacturer","MerchantId","MinimumPrice","Sort","Title" ];
	public static const Industrial:Array = [ "BrowseNode","KeyWords","Manufacturer","Title" ];
	public static const KindleStore:Array = [ "Author","BrowseNode","Condition","ItemPage","Keywords",
											  "MaximumPrice","MerchantId","MinimumPrice","Power",
											  "Publisher","Sort","TextStream","Title"]
	
}
